package labelsystem.Service;

import labelsystem.Pojo.*;
import labelsystem.utils.monitorHandle;

import javax.print.Doc;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author MCG
 * @projectName careOlder
 * @Description TODO
 * @time 2023/3/28 18:57
 */
public interface ouserService {

    /*
     * @description: 登陆
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 18:58
     */

    public OlderUser loginIn(String phone);

    public OlderUser queryInfo(Long oid);

    public OlderUser queryInfoByTel(String phone);

    public OlderUser updateInfo(OlderUser olderUser);

    /*
     * @description: 查询医生
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 19:00
     */
    public List<Doctor> queryDoctors();

    public List<Doctor> queryDoctorsBySpecify(String specify);

    public Doctor queryDoctorById(Long doctorId);



    /*
     * @description: 查询护工
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 19:02
     */
    public List<Volunteer> queryVolunteers();
    public Volunteer queryVolunteerById(Long vid);


    /*
     * @description: 查询体检单、订单以及监测
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 19:05
     */
     public List<Order> queryOrders(Long oid);
     public boolean createVOrder(Long oid,String oName,Long vid,String vName,Float price);

    public boolean createDOrder(Long oid,String oName,Long did,String dName,Float price);

     public List<Check> queryCheck(Long oid);
     public monitorHandle queryMonitor(Long oid);

     /*
      * @description:评价
      * @param: null
      * @return:
      * @author MCG
      * @date: 2023/3/29 14:56
      */
     public boolean rateVolunteer(Long oid,Float rating,Long vid);

     public boolean rateDoctor(Long oid,Float rating,Long vid);

     public monitorHandle click(Long oid, Monitor monitor, Long duration);
    public Monitor queryMonitorById(String oid);
}
